object transformList{
	def main(list: List[Int]){
		println(list.map(x => if (x % 2 == 0) x / 2 else x + 1))
	}
}
transformList.main(List(1,2,3,4,5,6))
